from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager

# 自动化下载火狐驱动的代码
# 下载地址 C:\Users\薛国鹏\.wdm\drivers\geckodriver\win64\v0.33.0\geckodriver.exe
driver = webdriver.Firefox(executable_path=GeckoDriverManager().install())
driver.get("https://www.baidu.com/")